package org.yunmai.remote;


import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.yunmai.dto.LoginDto;
import org.yunmai.util.R;
import org.yunmai.vo.LoginVo;
import org.yunmai.vo.MemberVo;

/**
 * 描述     接口
 *
 * @author 小灰灰
 * @date 2025/6/16
 */
@FeignClient("hiit-member")
public interface AuthOpenFeignRemote {

    @PostMapping("/member/login")
    @Operation(summary = "用户登陆")
    public R<LoginVo> login(
            @RequestBody LoginDto login
    );

    @GetMapping("/member/memberInfo")
    @Operation(summary = "用户信息")
    public R<MemberVo> userInfo(
            @RequestBody String token
    );
}